/**
 * <b>项目名：</b>ht-web<br/>  
 * <b>包名：</b>com.flea.hclv.controller<br/>  
 * <b>文件名：</b>FaceInfoController.java<br/>  
 * <b>版本信息：</b>1.0<br/>  
 * <b>日期：</b>2019年8月22日 上午10:12:28<br/>  
 * <b>COPYRIGHT 2010-2012 ALL RIGHTS RESERVED 虫子科技</b>-版权所有<br/>
 */
package com.flea.hclv.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSONObject;
import com.flea.hclv.model.entity.HVisitor;
import com.flea.hclv.model.entity.vo.FaceInfoPersonVo;
import com.flea.hclv.service.FaceInfoService;
import com.flea.hclv.service.PersonInfoService;
import com.flea.hclv.util.ServerResponse;
import com.flea.system.bean.FleaPage;

/**
 * @description TODO
 * @createTime 2019年8月22日 上午10:12:28
 * @modifyTime 
 * @author myflea@163.com
 * @version 1.0
 */
@Controller
@RequestMapping("/flea/hclv/face/")
public class FaceInfoController {
	@Autowired
	private FaceInfoService faceInfoService;
	@Autowired
	private PersonInfoService personInfoService;
    @RequestMapping("selectAll")
    @ResponseBody
    public ServerResponse<FleaPage<FaceInfoPersonVo>> selectAll(HttpServletRequest request, FleaPage<HVisitor> paging,
    		String personName,String projectCode,String teamCode,String startTime,String endTime ){
  
        return faceInfoService.selectAll(paging.getCurPage(),paging.getPageSize(),personName,projectCode,teamCode,startTime ,endTime);

    }
    @RequestMapping("statisticsFaceInfo3Day")
    @ResponseBody
    public ServerResponse<JSONObject> statisticsFaceInfo3Day(HttpServletRequest request,HttpServletResponse response){
    	
    	ServerResponse<JSONObject> serverResponse =  personInfoService.findFaceInfo3Day();
    	return serverResponse;
    }

}
